#include "StdAfx.h"
#include "FEApplication.h"
#include "InputManager.h"


namespace FEngine
{
	FEApplication::FEApplication()
		: Node()
	{
		mParentGUINode = new GUINode();
		mParentGUINode->setPosition(0, 0);
	}

	FEApplication::~FEApplication()
	{
		delete mParentGUINode;
	}
	
	void FEApplication::initialize()
	{
	}
	
	void FEApplication::addGUIElement(GUINode* _GUINode)
	{
		mParentGUINode->addChild(_GUINode);
	}

	void FEApplication::removeGUIElement(GUINode* _GUINode)
	{
		mParentGUINode->removeChild(_GUINode);
	}
	
	void FEApplication::updateGUI(double _elapsedTime)
	{
		mParentGUINode->update(_elapsedTime);
	}

	void FEApplication::renderGUI(double _elapsedTime)
	{
		mParentGUINode->render(_elapsedTime);
	}

	void FEApplication::update(double _elapsedTime)
	{
		Node::update(_elapsedTime);
	}

	void FEApplication::render(double _elapsedTime)
	{
		Node::render(_elapsedTime);
	}

} // namespace FEngine